package com.lsw.jgyf.model;

import java.util.List;

/**
 * Created by lsw on 2018/7/26.
 */

public class HomeFragment1Model {

    /**
     * data : [{"id":4,"title":"423","url":"","img_url":"http://120.79.167.222/mobile_shop/public/upload/20180723/19622ca804080698d9296189d7127f64.jpg"},{"id":3,"title":"342","url":"","img_url":"http://120.79.167.222/mobile_shop/public/upload/20180723/19622ca804080698d9296189d7127f64.jpg"},{"id":2,"title":"342","url":"http://fanyi.baidu.com/","img_url":"http://120.79.167.222/mobile_shop/public/upload/2080723/19622ca804080698d9296189d7127f64.jpg"},{"id":1,"title":"百度","url":"https://www.baidu.com/","img_url":"http://120.79.167.222/mobile_shop/public/upload/20180723/19622ca804080698d9296189d7127f64.jpg"}]
     * total : 4
     */

    private BannerListEntity banner_list;
    /**
     * data : [{"id":2,"name":"Mate 10","card_type":"双卡双待","img_url":"http://120.79.167.222/mobile_shop/public/upload/20180726/562b88579ac4428694bf013c83714b68.jpg","phoneSku":{"id":6,"memory":"8G+128G","phone_id":2,"price":"5000.00","color":"灰色","stock_size":1000,"sell_num":null,"create_time":"2018-07-23 17:18:28","update_time":"2018-07-26 09:40:58","delete_time":null},"phoneBrand":{"id":2,"name":"华为","title":null,"create_time":"2018-07-23 17:18:28","update_time":"2018-07-23 17:18:28","delete_time":null}},{"id":1,"name":"iphone8","card_type":"单卡","img_url":"http://120.79.167.222/mobile_shop/public/upload/20180726/a0322388469bff996076b0548baa19ec.jpg","phoneSku":{"id":3,"memory":"8G+128G","phone_id":1,"price":"12000.00","color":"灰色","stock_size":5000,"sell_num":null,"create_time":"2018-07-23 17:15:28","update_time":"2018-07-26 09:41:58","delete_time":null},"phoneBrand":{"id":1,"name":"苹果","title":null,"create_time":"2018-07-23 17:15:28","update_time":"2018-07-23 17:15:28","delete_time":null}},{"id":3,"name":"小米5","card_type":"双卡双待","img_url":"http://120.79.167.222/mobile_shop/public/upload/20180726/b7e5d2ecdbd6ae36865d5f5ed4514ab8.jpg","phoneSku":{"id":9,"memory":"8G+128G","phone_id":3,"price":"5000.00","color":"灰色","stock_size":1000,"sell_num":null,"create_time":"2018-07-23 17:48:19","update_time":"2018-07-23 17:48:19","delete_time":null},"phoneBrand":{"id":3,"name":"小米","title":null,"create_time":"2018-07-23 17:48:19","update_time":"2018-07-23 17:48:19","delete_time":null}}]
     * last_page : 1
     * current_page : 1
     * total : 3
     */

    private PhoneListEntity phone_list;

    public void setBanner_list(BannerListEntity banner_list) {
        this.banner_list = banner_list;
    }

    public void setPhone_list(PhoneListEntity phone_list) {
        this.phone_list = phone_list;
    }

    public BannerListEntity getBanner_list() {
        return banner_list;
    }

    public PhoneListEntity getPhone_list() {
        return phone_list;
    }

    public static class BannerListEntity {
        private int total;
        /**
         * id : 4
         * title : 423
         * url :
         * img_url : http://120.79.167.222/mobile_shop/public/upload/20180723/19622ca804080698d9296189d7127f64.jpg
         */

        private List<DataEntity> data;

        public void setTotal(int total) {
            this.total = total;
        }

        public void setData(List<DataEntity> data) {
            this.data = data;
        }

        public int getTotal() {
            return total;
        }

        public List<DataEntity> getData() {
            return data;
        }

        public static class DataEntity {
            private int id;
            private String title;
            private String url;
            private String img_url;

            public void setId(int id) {
                this.id = id;
            }

            public void setTitle(String title) {
                this.title = title;
            }

            public void setUrl(String url) {
                this.url = url;
            }

            public void setImg_url(String img_url) {
                this.img_url = img_url;
            }

            public int getId() {
                return id;
            }

            public String getTitle() {
                return title;
            }

            public String getUrl() {
                return url;
            }

            public String getImg_url() {
                return img_url;
            }
        }
    }

    public static class PhoneListEntity {
        private int last_page;
        private int current_page;
        private int total;
        /**
         * id : 2
         * name : Mate 10
         * card_type : 双卡双待
         * img_url : http://120.79.167.222/mobile_shop/public/upload/20180726/562b88579ac4428694bf013c83714b68.jpg
         * phoneSku : {"id":6,"memory":"8G+128G","phone_id":2,"price":"5000.00","color":"灰色","stock_size":1000,"sell_num":null,"create_time":"2018-07-23 17:18:28","update_time":"2018-07-26 09:40:58","delete_time":null}
         * phoneBrand : {"id":2,"name":"华为","title":null,"create_time":"2018-07-23 17:18:28","update_time":"2018-07-23 17:18:28","delete_time":null}
         */

        private List<DataEntity> data;

        public void setLast_page(int last_page) {
            this.last_page = last_page;
        }

        public void setCurrent_page(int current_page) {
            this.current_page = current_page;
        }

        public void setTotal(int total) {
            this.total = total;
        }

        public void setData(List<DataEntity> data) {
            this.data = data;
        }

        public int getLast_page() {
            return last_page;
        }

        public int getCurrent_page() {
            return current_page;
        }

        public int getTotal() {
            return total;
        }

        public List<DataEntity> getData() {
            return data;
        }

        public static class DataEntity {
            private int id;
            private String name;
            private String card_type;
            private String img_url;
            private int is_contract;
            /**
             * id : 6
             * memory : 8G+128G
             * phone_id : 2
             * price : 5000.00
             * color : 灰色
             * stock_size : 1000
             * sell_num : null
             * create_time : 2018-07-23 17:18:28
             * update_time : 2018-07-26 09:40:58
             * delete_time : null
             */

            private PhoneSkuEntity phoneSku;
            /**
             * id : 2
             * name : 华为
             * title : null
             * create_time : 2018-07-23 17:18:28
             * update_time : 2018-07-23 17:18:28
             * delete_time : null
             */

            private PhoneBrandEntity phoneBrand;

            public int getIs_contract() {
                return is_contract;
            }

            public void setIs_contract(int is_contract) {
                this.is_contract = is_contract;
            }

            public void setId(int id) {
                this.id = id;
            }

            public void setName(String name) {
                this.name = name;
            }

            public void setCard_type(String card_type) {
                this.card_type = card_type;
            }

            public void setImg_url(String img_url) {
                this.img_url = img_url;
            }

            public void setPhoneSku(PhoneSkuEntity phoneSku) {
                this.phoneSku = phoneSku;
            }

            public void setPhoneBrand(PhoneBrandEntity phoneBrand) {
                this.phoneBrand = phoneBrand;
            }

            public int getId() {
                return id;
            }

            public String getName() {
                return name;
            }

            public String getCard_type() {
                return card_type;
            }

            public String getImg_url() {
                return img_url;
            }

            public PhoneSkuEntity getPhoneSku() {
                return phoneSku;
            }

            public PhoneBrandEntity getPhoneBrand() {
                return phoneBrand;
            }

            public static class PhoneSkuEntity {
                private int id;
                private String memory;
                private int phone_id;
                private String price;
                private String color;
                private int stock_size;
                private Object sell_num;
                private String create_time;
                private String update_time;
                private Object delete_time;

                public void setId(int id) {
                    this.id = id;
                }

                public void setMemory(String memory) {
                    this.memory = memory;
                }

                public void setPhone_id(int phone_id) {
                    this.phone_id = phone_id;
                }

                public void setPrice(String price) {
                    this.price = price;
                }

                public void setColor(String color) {
                    this.color = color;
                }

                public void setStock_size(int stock_size) {
                    this.stock_size = stock_size;
                }

                public void setSell_num(Object sell_num) {
                    this.sell_num = sell_num;
                }

                public void setCreate_time(String create_time) {
                    this.create_time = create_time;
                }

                public void setUpdate_time(String update_time) {
                    this.update_time = update_time;
                }

                public void setDelete_time(Object delete_time) {
                    this.delete_time = delete_time;
                }

                public int getId() {
                    return id;
                }

                public String getMemory() {
                    return memory;
                }

                public int getPhone_id() {
                    return phone_id;
                }

                public String getPrice() {
                    return price;
                }

                public String getColor() {
                    return color;
                }

                public int getStock_size() {
                    return stock_size;
                }

                public Object getSell_num() {
                    return sell_num;
                }

                public String getCreate_time() {
                    return create_time;
                }

                public String getUpdate_time() {
                    return update_time;
                }

                public Object getDelete_time() {
                    return delete_time;
                }
            }

            public static class PhoneBrandEntity {
                private int id;
                private String name;
                private Object title;
                private String create_time;
                private String update_time;
                private Object delete_time;

                public void setId(int id) {
                    this.id = id;
                }

                public void setName(String name) {
                    this.name = name;
                }

                public void setTitle(Object title) {
                    this.title = title;
                }

                public void setCreate_time(String create_time) {
                    this.create_time = create_time;
                }

                public void setUpdate_time(String update_time) {
                    this.update_time = update_time;
                }

                public void setDelete_time(Object delete_time) {
                    this.delete_time = delete_time;
                }

                public int getId() {
                    return id;
                }

                public String getName() {
                    return name;
                }

                public Object getTitle() {
                    return title;
                }

                public String getCreate_time() {
                    return create_time;
                }

                public String getUpdate_time() {
                    return update_time;
                }

                public Object getDelete_time() {
                    return delete_time;
                }
            }
        }
    }
}
